<template>
  <div class="dashboard-container">
    <div class="app-container">
      <hearder>
        <template #left-search>
          <el-form-item label="合作商搜索：">
            <el-input placeholder="请输入" clearable />
          </el-form-item>
        </template>
      </hearder>
      <!-- table主体 -->
      <tableMain :data-list="dataList" :create-dialog-show.sync="createDialogShow" :is-footle="false">
        <template #tableBody />
      </tableMain>
    </div>
  </div>
</template>

<script>
import hearder from '@/components/searchHearder.vue'
import tableMain from '@/components/tableMain.vue'
export default {
  components: {
    hearder,
    tableMain
  },
  data() {
    return {
      searchRegion: {
        pageIndex: '1', // 当前页码
        pageSize: '10', // 每页数据
        name: '', // 收缩名称
        totalCount: '0', // 总数据条数
        totalPage: '1' // 总页数
      },
      // 新建
      createDialogShow: false,
      // 表单数据
      dataList: []
    }
  },
  methods: {
    search() {
    },
    // 上一页
    upPage() {
      this.searchRegion.pageIndex--
    },
    // 下一页
    nextPage() {
      this.searchRegion.pageIndex++
    }
  }
}
</script>

<style scped lang='less'>
.el-input--suffix{
  height: 60px;
}

</style>
